package com.yangxk.kadmin.web.module.system.form;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 修改个人密码
 *
 * @author yangxk
 * @date 2018/10/29 21:30
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class UserPwdForm {

    @NotNull(message = "用户ID不能为空")
    private Long id;

    @NotBlank(message = "原密码不能为空")
    @Size(min = 32, max = 32, message = "非法请求")
    private String oldPwd;

    @NotBlank(message = "新密码不能为空")
    @Size(min = 32, max = 32, message = "非法请求")
    private String newPwd;
}
